/* 病史接口 */
import request from '@/utils/request'
/* 病史胸痛查询接口 */
export function getHistory(dispatchid, apiToken) {
  return request({
    url: '/selectDiseaseHistories',
    method: 'get',
    params: {
      'dispatchId': dispatchid,
      'apiToken': apiToken
    },
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

/* 病史胸痛保存接口 */
export function addHistoryPost(data) {
  return request({
    url: '/updataDiseaseHistories',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

/* 病史卒中查询接口 */
export function getHistoryStroke(dispatchid, apiToken) {
  return request({
    url: '/findStrokeHistories',
    method: 'get',
    params: {
      'dispatchId': dispatchid,
      'apiToken': apiToken
    },
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}

/* 病史卒中保存接口 */
export function addHistoryPostStroke(data) {
  return request({
    url: '/saveStrokeHistories',
    method: 'post',
    data: data,
    baseURL: process.env.VUE_APP_BASE_API_DATA_BRANCH
  })
}
